package PTA.javaA;

import java.util.Scanner;

public class ex06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
        int n = sc.nextInt();
        int begin = sc.nextInt();
        int end = sc.nextInt();
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<n;i++){
        sb.append(i);
        }
        System.out.println(sb.substring(begin,end));
    }
}}
